/* 基本样式 */
body {
    padding-top: 20px; /* 防止内容被导航栏遮挡 */
    background: linear-gradient(135deg, #f0f4f7 0%, #e0e7ff 100%); /* 柔和的渐变背景 */
    font-family: 'Quicksand', sans-serif; /* 假设引入了Quicksand字体，否则使用系统默认 */
    line-height: 1.8; /* 增加行高，提升可读性 */
    color: #343a40; /* 深灰色文本 */
    min-height: 100vh; /* 确保渐变覆盖整个视口 */
    display: flex;
    flex-direction: column;
    overflow-x: hidden; /* 防止横向滚动条 */
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%); /* 深色模式渐变 */
        color: #ecf0f1;
    }

    .navbar, .sidebar-nav, .col-sm-10, .card, .modal-content {
        background-color: #3d566e; /* 更深的蓝灰色，与渐变背景协调 */
        color: #ecf0f1;
    }

    .navbar-brand, h1, h2, h3, h4, h5, h6 {
        color: #ecf0f1;
    }

    .sidebar-nav li a {
        color: #a2d2ff; /* 浅蓝色 */
    }

    .sidebar-nav li a:hover {
        background-color: #4a6681;
        color: #c9e4ff;
    }

    table th {
        background-color: #4a6681;
    }

    table tr:nth-child(even) {
        background-color: #3d566e;
    }

    table tr:hover {
        background-color: #5b7d9b;
    }

    .form-control {
        background-color: #3d566e;
        border-color: #4a6681;
        color: #ecf0f1;
    }

    .form-control:focus {
        border-color: #a2d2ff;
    }

    .form-control:disabled {
        background-color: #2c3e50;
    }
}

/* 高对比度模式支持 */
@media (forced-colors: active) {
    .btn, .pagination .active a {
        border: 2px solid currentColor;
    }

    .alert {
        border: 2px solid currentColor;
    }
}

/* 键盘导航焦点样式 */
:focus {
    outline: 3px solid #ff6f61; /* 更醒目的焦点颜色 */
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline: 3px solid #ff6f61;
    outline-offset: 2px;
}

/* 打印样式 */
@media print {
    body {
        background-color: #fff;
        color: #000;
        padding: 0;
    }

    .navbar, .sidebar-nav {
        display: none;
    }

    .col-sm-10 {
        padding: 0;
        margin: 0;
        box-shadow: none;
    }

    .btn, .pagination {
        display: none;
    }

    table {
        border-collapse: collapse;
    }

    table td, table th {
        border: 1px solid #000;
    }

    a {
        text-decoration: none;
        color: #000;
    }

    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }

    .modal {
        display: none !important;
    }

    .card {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    @page {
        margin: 2cm;
    }
}

/* 响应式容器 */
.container-fluid {
    padding-right: 15px;
    padding-left: 15px;
}

.row {
    --bs-gutter-x: 1.5rem; /* Bootstrap 5 grid gutter */
}

.col-sm-2, .col-sm-10 {
    padding-right: var(--bs-gutter-x, 0.75rem); /* Adjust padding for Bootstrap 5 grid */
    padding-left: var(--bs-gutter-x, 0.75rem);
}

@media (min-width: 576px) {
    .col-sm-2 {
        flex: 0 0 auto;
        width: 16.66666667%;
    }
    .col-sm-10 {
        flex: 0 0 auto;
        width: 83.33333333%;
    }
}

/* 导航栏样式 */
.navbar {
    background-color: #ffffff; /* 白色背景 */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* 更明显的阴影 */
    padding: 1.5rem 1rem; /* 增加内边距 */
    margin-bottom: 2.5rem; /* 增加底部外边距 */
    border-radius: 12px; /* 圆角 */
}

.navbar-brand {
    font-size: 1.8rem; /* 更大字体 */
    font-weight: 700;
    color: #ff6f61; /* 醒目颜色 */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05); /* 轻微文字阴影 */
}

/* 侧边栏样式 */
.sidebar-nav {
    list-style: none;
    padding: 20px;
    margin: 0;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.sidebar-nav li {
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.sidebar-nav li:last-child {
    border-bottom: none;
}

.sidebar-nav li a {
    color: #5a67d8;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: block;
    padding: 8px 15px;
    border-radius: 8px;
}

.sidebar-nav li a:hover {
    background-color: #e0e7ff;
    color: #3b4bc5;
    transform: translateX(5px);
}

.sidebar-nav li.active > a {
    background-color: #5a67d8; /* 活跃状态背景色 */
    color: #ffffff; /* 活跃状态文字颜色 */
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.sidebar-nav li.user-info {
    padding: 10px 15px;
    font-weight: 600;
    color: #ff6f61; /* 用户信息颜色 */
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 10px;
}

.sidebar-nav ul {
    list-style: none;
    padding-left: 20px; /* 子列表缩进 */
}

.sidebar-nav ul li {
    padding: 5px 0;
    border-bottom: none; /* 子列表不显示分割线 */
}

/* 主内容区 */
.col-sm-10 {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15); /* 增加柔和阴影，使其更突出 */
    margin-left: 0;
    flex-grow: 1; /* 确保主内容区占据剩余空间 */
}

/* 卡片样式 */
.card {
    border: none;
    border-radius: 12px; /* 圆角 */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* 柔和阴影 */
    margin-bottom: 25px; /* 增加卡片间距 */
    overflow: hidden; /* 确保内容在圆角内 */
}

.card-header {
    background-color: #f0f4f7; /* 浅灰色头部 */
    color: #343a40;
    font-weight: 600;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.card-body {
    padding: 20px;
}

/* 表格样式 */
table {
    width: 100%;
    margin-bottom: 1rem;
    color: #343a40;
    border-collapse: separate; /* 允许边框圆角 */
    border-spacing: 0;
    border: 1px solid #dee2e6; /* 边框 */
    border-radius: 10px; /* 圆角 */
    overflow: hidden; /* 确保内容在圆角内 */
}

table td, table th {
    padding: 12px 15px;
    vertical-align: top;
    border-top: 1px solid #dee2e6;
}

table th {
    text-align: left;
    font-weight: 600;
    background-color: #f0f4f7; /* 表头背景 */
    color: #343a40;
    border-bottom: 2px solid #dee2e6;
}

table tr:nth-child(even) {
    background-color: #f8f9fa; /* 偶数行背景 */
}

table tr:hover {
    background-color: #e9ecef; /* 悬停背景 */
    transform: translateY(-2px); /* 轻微上浮效果 */
    box-shadow: 0 4px 8px rgba(0,0,0,0.05); /* 悬停阴影 */
    transition: all 0.2s ease; /* 过渡效果 */
}

/* 文本样式 */
h1, h2, h3, h4, h5, h6 {
    color: #343a40;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1); /* 增加柔和文字阴影 */
}

h1 {
    font-size: 2.8rem; /* 更大更醒目 */
    color: #ff6f61; /* 醒目颜色 */
}

h2 {
    font-size: 2.2rem;
    color: #5a67d8; /* 可爱蓝色 */
}

h3 {
    font-size: 1.8rem;
    color: #8c7ae6; /* 新增可爱紫色 */
}

/* 链接样式 */
a {
    color: #5a67d8;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #3b4bc5;
    text-decoration: underline;
}

/* 通用列表样式 */
ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

ul li {
    padding: 5px 0;
    border-bottom: 1px dashed #e9ecef; /* 虚线分割 */
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

ul li:last-child {
    border-bottom: none;
}

ul li:hover {
    background-color: #f0f4f7; /* 列表项悬停背景 */
    transform: translateX(3px); /* 轻微右移 */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* 悬停阴影 */
}

li.text-danger {
    color: #dc3545;
    font-weight: 500;
}

/* 警告信息 */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 8px; /* 圆角 */
    font-weight: 500;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    font-weight: 600;
    color: #fff;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background-color: #5a67d8; /* 可爱蓝色 */
    border: 1px solid #5a67d8;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 8px; /* 圆角 */
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* 柔和阴影 */
}

.btn:hover {
    color: #fff;
    background-color: #3b4bc5; /* 悬停颜色 */
    border-color: #3b4bc5;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15); /* 更明显阴影 */
    transform: translateY(-2px); /* 轻微上浮 */
}

.btn-primary {
    background-color: #5a67d8;
    border-color: #5a67d8;
}

.btn-primary:hover {
    background-color: #3b4bc5;
    border-color: #3b4bc5;
}

.btn-secondary {
    color: #343a40;
    background-color: #e9ecef;
    border-color: #e9ecef;
}

.btn-secondary:hover {
    color: #343a40;
    background-color: #dae0e5;
    border-color: #dae0e5;
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

.btn-warning {
    color: #343a40;
    background-color: #ffc107;
    border-color: #ffc107;
}

.btn-warning:hover {
    color: #343a40;
    background-color: #e0a800;
    border-color: #d39e00;
}

.btn-info {
    background-color: #17a2b8;
    border-color: #17a2b8;
}

.btn-info:hover {
    background-color: #138496;
    border-color: #117a8b;
}

.btn-light {
    color: #343a40;
    background-color: #f8f9fa;
    border-color: #f8f9fa;
}

.btn-light:hover {
    color: #343a40;
    background-color: #e2e6ea;
    border-color: #dae0e5;
}

.btn-dark {
    background-color: #343a40;
    border-color: #343a40;
}

.btn-dark:hover {
    background-color: #23272b;
    border-color: #1d2124;
}

.btn-link {
    font-weight: 400;
    color: #5a67d8;
    text-decoration: none;
    background-color: transparent;
    border: none;
    box-shadow: none;
}

.btn-link:hover {
    color: #3b4bc5;
    text-decoration: underline;
    background-color: transparent;
    box-shadow: none;
    transform: none;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 6px;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.25rem;
    border-radius: 10px;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-group {
    display: inline-flex;
}

/* 表单字段样式 */
.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem; /* 增加内边距 */
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 10px; /* 更圆角 */
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); /* 新增柔和阴影 */
}

.form-control:focus {
    color: #495057;
    background-color: #fff;
    border-color: #8c7ae6; /* 使用可爱的紫色 */
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(140, 122, 230, 0.25); /* 焦点阴影与紫色匹配 */
}

.form-control:disabled {
    background-color: #e9ecef;
    opacity: 1;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* 稍微深一点的半透明背景 */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 15px; /* 更圆角 */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25); /* 更明显阴影 */
    width: 90%;
    max-width: 600px;
    transform: translateY(-50px); /* 初始位置 */
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0); /* 动画到中心 */
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    padding: 15px 25px; /* 增加内边距 */
    margin-bottom: 15px;
    font-size: 1.8rem; /* 更大字体 */
    font-weight: 700;
    color: #ff6f61; /* 醒目颜色 */
}

.modal-body {
    padding: 0 25px; /* 左右内边距与头部一致 */
    margin-bottom: 20px;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 15px 25px; /* 左右内边距与头部一致 */
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Pagination Styles */
.pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
    border-radius: 0.25rem;
    justify-content: center; /* 居中显示 */
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.pagination li {
    margin: 0 5px;
}

.pagination a {
    display: block;
    padding: 12px 18px; /* 增加内边距 */
    color: #5a67d8; /* 可爱蓝色 */
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 10px; /* 更圆角 */
    text-decoration: none;
    transition: all 0.3s ease; /* 增加过渡效果 */
    box-shadow: 0 3px 6px rgba(0,0,0,0.08); /* 柔和阴影 */
}

.pagination a:hover {
    color: #ffffff;
    background-color: #5a67d8; /* 悬停时背景色 */
    border-color: #5a67d8;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15); /* 悬停时阴影 */
    transform: translateY(-3px); /* 轻微上浮 */
}

.pagination .active a {
    z-index: 1;
    color: #ffffff;
    background-color: #ff6f61; /* 激活时醒目颜色 */
    border-color: #ff6f61;
    cursor: default;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15); /* 激活时阴影 */
    transform: translateY(-2px); /* 保持一致的上浮效果 */
}

/* 响应式调整 */
@media (max-width: 768px) {
    .col-sm-10 {
        padding: 15px;
    }
    
    .sidebar-nav {
        margin-bottom: 20px;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    table {
        display: block;
        overflow-x: auto;
    }
}

/* 动画和过渡效果 */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* 旋转动画 */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 28px;
    height: 28px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #5a67d8; /* 可爱蓝色 */
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-left: 5px;
}

/* Form Validation Feedback */
.form-control.is-invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

.form-control.is-invalid ~ .invalid-feedback {
    display: block;
}

/* Tooltip Styles */
.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.tooltip .tooltip-text {
    visibility: hidden;
    background-color: #8c7ae6; /* 可爱紫色背景 */
    color: #fff;
    text-align: center;
    border-radius: 8px; /* 更圆角 */
    padding: 10px 14px; /* 增加内边距 */
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s; /* 添加 transform 过渡 */
    box-shadow: 0 4px 8px rgba(0,0,0,0.25); /* 更明显阴影 */
}

.tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #8c7ae6 transparent transparent transparent; /* 三角形颜色与背景一致 */
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
    transform: translateY(-5px); /* 悬停时轻微上浮 */
}

/* Help Text */
.help-text {
    font-size: 0.9em; /* 稍微增大字体 */
    color: #8c7ae6; /* 使用可爱的紫色 */
    margin-top: 0.25rem;
    display: block;
    font-weight: 500; /* 增加字体粗细 */
}

/* 改进的按钮悬停效果 */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.btn:hover::after {
    width: 200%;
    height: 200%;
}

/* 改进的卡片悬停效果 */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* 改进的表格行悬停效果 */
table tr {
    transition: background-color 0.2s ease;
}

/* 改进的链接悬停效果 */
a {
    position: relative;
}

a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* 辅助类 */
.text-center { text-align: center; font-weight: 600; }
.text-right { text-align: right; font-weight: 600; }
.text-left { text-align: left; font-weight: 600; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-3 { margin-left: 1rem; }
.ml-4 { margin-left: 1.5rem; }
.ml-5 { margin-left: 3rem; }

.mr-1 { margin-right: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 1rem; }
.mr-4 { margin-right: 1.5rem; }
.mr-5 { margin-right: 3rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }

.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 标签样式 */
.tag {
    display: inline-block;
    padding: 0.5em 1em; /* 增加内边距 */
    font-size: 0.9em; /* 稍微增大字体 */
    font-weight: 600;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.75rem; /* 更圆角 */
    background-color: #6c757d; /* 默认颜色 */
    margin-right: 8px; /* 增加右边距 */
    margin-bottom: 8px; /* 增加下边距 */
    box-shadow: 0 3px 6px rgba(0,0,0,0.12); /* 更明显阴影 */
    transition: all 0.2s ease; /* 添加过渡效果 */
    cursor: default; /* 表示通常不可点击 */
}

.tag:hover {
    transform: translateY(-2px); /* 悬停时轻微上浮 */
    box-shadow: 0 5px 10px rgba(0,0,0,0.15); /* 悬停时更明显阴影 */
}

.tag-primary { background-color: #6a7cdb; } /* 稍微亮一点的蓝色 */
.tag-success { background-color: #38b54f; } /* 稍微亮一点的绿色 */
.tag-danger { background-color: #e34e5f; } /* 稍微亮一点的红色 */
.tag-warning { background-color: #ffd740; color: #343a40; } /* 橙色，确保文字颜色 */
.tag-info { background-color: #26b1c8; } /* 稍微亮一点的青色 */

/* 徽章样式 */
.badge {
    display: inline-block;
    padding: 0.6em 0.9em; /* 增大内边距 */
    font-size: 0.8em; /* 稍微增大字体 */
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 1rem; /* 更大更圆角 */
    background-color: #7f8c8d; /* 柔和的默认灰色 */
    box-shadow: 0 3px 6px rgba(0,0,0,0.12); /* 更明显阴影 */
    transition: all 0.2s ease; /* 添加过渡效果 */
}

.badge:hover {
    transform: translateY(-1px); /* 悬停时轻微上浮 */
    box-shadow: 0 5px 10px rgba(0,0,0,0.15); /* 悬停时更明显阴影 */
}

.badge-primary { background-color: #6a7cdb; } /* 与tag-primary匹配 */
.badge-success { background-color: #38b54f; } /* 与tag-success匹配 */
.badge-danger { background-color: #e34e5f; } /* 与tag-danger匹配 */
.badge-warning { background-color: #ffd740; color: #343a40; } /* 与tag-warning匹配 */
.badge-info { background-color: #26b1c8; } /* 与tag-info匹配 */

/* 进度条样式 */
.progress {
    display: flex;
    height: 1.2rem; /* 增加高度 */
    overflow: hidden;
    font-size: 0.75rem;
    background-color: #e9ecef;
    border-radius: 0.5rem; /* 更圆角 */
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08); /* 添加柔和阴影 */
}

.progress-bar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    background-color: #ff6f61; /* 使用醒目颜色 */
    transition: width 0.6s ease; /* 保持过渡效果 */
    border-radius: 0.5rem; /* 与容器一致的圆角 */
}

/* 面包屑导航样式 */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 0.8rem 1.2rem; /* 增加内边距 */
    margin-bottom: 1.5rem; /* 增加底部外边距 */
    list-style: none;
    background-color: #ffffff; /* 白色背景 */
    border-radius: 0.75rem; /* 更圆角 */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* 增加柔和阴影 */
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item + .breadcrumb-item::before {
    display: inline-block;
    padding-right: 0.75rem; /* 增加右边距 */
    color: #8c7ae6; /* 使用可爱的紫色分隔符 */
    content: ">" /* 自定义分隔符 */;
}

.breadcrumb-item a {
    color: #5a67d8; /* 链接颜色 */
    text-decoration: none;
    transition: color 0.3s ease; /* 添加过渡效果 */
}

.breadcrumb-item a:hover {
    color: #3b4bc5; /* 悬停颜色 */
    text-decoration: none; /* 悬停时不显示下划线 */
}

.breadcrumb-item.active {
    color: #343a40; /* 激活项颜色，与正文颜色一致 */
    font-weight: 600; /* 增加字体粗细 */
}

/* Code and Preformatted Text */
pre {
    background-color: #f0f4f7;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e0e7ff;
    overflow-x: auto;
    font-family: 'Fira Code', 'Consolas', 'Monaco', 'Andale Mono', 'Ubuntu Mono', monospace;
    font-size: 0.95em;
    line-height: 1.6;
    color: #343a40;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

pre:hover {
    box-shadow: 0 6px 12px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

code {
    font-family: 'Fira Code', 'Consolas', 'Monaco', 'Andale Mono', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
    color: #ff6f61;
    background-color: #fdf5f7;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid #f9dae5;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

code:hover {
    background-color: #fff0f3;
    box-shadow: 0 3px 6px rgba(0,0,0,0.08);
}

blockquote {
    padding: 20px 25px;
    margin: 0 0 1.5rem;
    font-size: 1.15em;
    border-left: 5px solid #8c7ae6;
    background-color: #f0f4f7;
    color: #5a67d8;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

blockquote:hover {
    box-shadow: 0 6px 12px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

blockquote p:last-child {
    margin-bottom: 0;
}

/* Image Styles */
.img-fluid {
    max-width: 100%;
    height: auto;
    border-radius: 12px; /* 更圆角 */
    box-shadow: 0 6px 12px rgba(0,0,0,0.15); /* 更明显阴影 */
    transition: all 0.3s ease; /* 添加过渡效果 */
}

.img-fluid:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.2); /* 悬停时更明显阴影 */
    transform: translateY(-3px); /* 悬停时轻微上浮 */
}

.img-thumbnail {
    padding: 0.5rem; /* 增加内边距 */
    background-color: #fff;
    border: 1px solid #e0e7ff; /* 可爱蓝色边框 */
    border-radius: 12px; /* 更圆角 */
    max-width: 100%;
    height: auto;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15); /* 更明显阴影 */
    transition: all 0.3s ease; /* 添加过渡效果 */
}

.img-thumbnail:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.2); /* 悬停时更明显阴影 */
    transform: translateY(-3px); /* 悬停时轻微上浮 */
}

/* Responsive Tables */
.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px; /* 更圆角 */
    box-shadow: 0 6px 12px rgba(0,0,0,0.15); /* 更明显阴影 */
    transition: all 0.3s ease; /* 添加过渡效果 */
}

.table-responsive:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.2); /* 悬停时更明显阴影 */
}

/* Color Utilities */
.text-primary { color: #5a67d8; font-weight: 600; }
.text-success { color: #28a745; font-weight: 600; }
.text-danger { color: #dc3545; font-weight: 600; }
.text-warning { color: #ffc107; font-weight: 600; }
.text-info { color: #17a2b8; font-weight: 600; }
.text-muted { color: #6c757d; font-weight: 500; }

/* Background Color Utilities */
.bg-primary { background-color: #5a67d8; color: #fff; }
.bg-success { background-color: #28a745; color: #fff; }
.bg-danger { background-color: #dc3545; color: #fff; }
.bg-warning { background-color: #ffc107; color: #343a40; }
.bg-info { background-color: #17a2b8; color: #fff; }
.bg-light { background-color: #f8f9fa; color: #343a40; }
.bg-dark { background-color: #343a40; color: #fff; } 